
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type SystemSignRewardRequest struct {

	Type string `json:"type" form:"type"`

	Days string `json:"days" form:"days"`

	Point string `json:"point" form:"point"`

	Exp string `json:"exp" form:"exp"`

}

func (r *SystemSignRewardRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *SystemSignRewardRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"type": "required",

		"days": "required",

		"point": "required",

		"exp": "required",

	}
}

func (r *SystemSignRewardRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *SystemSignRewardRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *SystemSignRewardRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
